package kpi.javatraining6.gnatiuk.src.tester.question;

public class QuestionWithTopic extends QuestionDecorator{
    private String topic;

    public QuestionWithTopic(Question question, String topic) {
        super(question);
        this.question = question;
        this.topic = topic;
    }

    @Override
    public String getTopic() {
        return topic;
    }
}
